import {
	IF_SAVE_NOTICE_HISTORY,
	SET_NOTICE_HISTORY
} from '@/store/notice/mutaion-type.js'
import {
	setStorage,
	getStorage
} from '@/common/util/storage.js'
export default {
	state: {
		isSave: getStorage('isSave') || false,
		history: getStorage('history') || {},
	},

	mutations: {
		[IF_SAVE_NOTICE_HISTORY](state, payload) {
			state.isSave = payload
			setStorage('isSave', state.isSave)
		},
		[SET_NOTICE_HISTORY](state, payload) {
			state.history = payload
			setStorage('history', state.history)
		},
	},
	actions: {

	},
}
